Optimal. Leaf size=35 \[ -q x+\frac {(d+e f+e g x) \log \left (c (d+e (f+g x))^q\right )}{e g} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2494, 2436,
2332} \begin {gather*} \frac {(d+e f+e g x) \log \left (c (d+e (f+g x))^q\right )}{e g}-q x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2332
Rule 2436
Rule 2494
Rubi steps
\begin {align*} \int \log \left (c (d+e (f+g x))^q\right ) \, dx &=\int \log \left (c (d+e f+e g x)^q\right ) \, dx\\ &=\frac {\text {Subst}\left (\int \log \left (c x^q\right ) \, dx,x,d+e f+e g x\right )}{e g}\\ &=-q x+\frac {(d+e f+e g x) \log \left (c (d+e (f+g x))^q\right )}{e g}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 44, normalized size = 1.26 \begin {gather*} \frac {(d+e f) q \log (d+e f+e g x)}{e g}+x \left (-q+\log \left (c (d+e f+e g x)^q\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 57, normalized size = 1.63
method | result | size |
norman | \(x \ln \left (c \,{\mathrm e}^{q \ln \left (d +\left (g x +f \right ) e \right )}\right )+\frac {q \left (e f +d \right ) \ln \left (d +\left (g x +f \right ) e \right )}{e g}-q x\) | \(47\) |
default | \(\ln \left (c \left (e g x +e f +d \right )^{q}\right ) x -e g q \left (\frac {x}{e g}+\frac {\left (-e f -d \right ) \ln \left (e g x +e f +d \right )}{e^{2} g^{2}}\right )\) | \(57\) |
risch | \(x \ln \left (\left (e g x +e f +d \right )^{q}\right )-\frac {i \pi x \,\mathrm {csgn}\left (i \left (e g x +e f +d \right )^{q}\right ) \mathrm {csgn}\left (i c \left (e g x +e f +d \right )^{q}\right ) \mathrm {csgn}\left (i c \right )}{2}+\frac {i \pi x \mathrm {csgn}\left (i c \left (e g x +e f +d \right )^{q}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}+\frac {i \pi x \,\mathrm {csgn}\left (i \left (e g x +e f +d \right )^{q}\right ) \mathrm {csgn}\left (i c \left (e g x +e f +d \right )^{q}\right )^{2}}{2}-\frac {i \pi x \mathrm {csgn}\left (i c \left (e g x +e f +d \right )^{q}\right )^{3}}{2}+x \ln \left (c \right )+\frac {\ln \left (e g x +e f +d \right ) f q}{g}-q x +\frac {\ln \left (e g x +e f +d \right ) d q}{e g}\) | \(189\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 57, normalized size = 1.63 \begin {gather*} -g q {\left (\frac {x e^{\left (-1\right )}}{g} - \frac {{\left (f e + d\right )} e^{\left (-2\right )} \log \left (g x e + f e + d\right )}{g^{2}}\right )} e + x \log \left ({\left ({\left (g x + f\right )} e + d\right )}^{q} c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 50, normalized size = 1.43 \begin {gather*} -\frac {{\left (g q x e - g x e \log \left (c\right ) - {\left (d q + {\left (g q x + f q\right )} e\right )} \log \left ({\left (g x + f\right )} e + d\right )\right )} e^{\left (-1\right )}}{g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs.
\(2 (29) = 58\).
time = 0.37, size = 80, normalized size = 2.29 \begin {gather*} \begin {cases} x \log {\left (c d^{q} \right )} & \text {for}\: e = 0 \wedge \left (e = 0 \vee g = 0\right ) \\x \log {\left (c \left (d + e f\right )^{q} \right )} & \text {for}\: g = 0 \\\frac {d \log {\left (c \left (d + e f + e g x\right )^{q} \right )}}{e g} + \frac {f \log {\left (c \left (d + e f + e g x\right )^{q} \right )}}{g} - q x + x \log {\left (c \left (d + e f + e g x\right )^{q} \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 5.05, size = 69, normalized size = 1.97 \begin {gather*} \frac {{\left (g x e + f e + d\right )} q e^{\left (-1\right )} \log \left (g x e + f e + d\right )}{g} - \frac {{\left (g x e + f e + d\right )} q e^{\left (-1\right )}}{g} + \frac {{\left (g x e + f e + d\right )} e^{\left (-1\right )} \log \left (c\right )}{g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.31, size = 46, normalized size = 1.31 \begin {gather*} x\,\ln \left (c\,{\left (d+e\,\left (f+g\,x\right )\right )}^q\right )-q\,x+\frac {\ln \left (d+e\,f+e\,g\,x\right )\,\left (d\,q+e\,f\,q\right )}{e\,g} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________